from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('crmv2',
    (r'^$', 'views.index'),
    (r'^survey/$', 'survey.views.survey_list'),
    (r'^survey/view/(\d+)/$', 'survey.views.survey_view'),
    (r'^survey/close/(\d+)/$', 'survey.views.survey_close'),
    (r'^survey/add/$', 'survey.views.survey_add'),
    (r'^survey/edit/(\d+)/$', 'survey.views.survey_edit'),
    (r'^survey/delete/$', 'survey.views.survey_delete'),
    (r'^survey/answer/(\d+)/$', 'survey.views.survey_answer'),
    (r'^survey/invite/(\d+)/$', 'survey.views.survey_invite'),
    (r'^survey/invite/(\d+)/ok/$', 'survey.views.survey_invite_ok'),
    (r'^survey/interviewee/(\d+)/$', 'survey.views.survey_interviewee'),
    (r'^survey/report/(\d+)/$', 'survey.views.survey_report'),
    (r'^survey/template/import/$', 'survey.views.survey_template_import'),
    (r'^stusearch/$', 'students.search'),
    (r'^alunmi/$', 'students.alunmi'),
    (r'^addstudent/$', 'students.addstudent'),
    (r'^savestudent/$', 'students.savestudent'),
    (r'^edit_stu/(?P<s_id>\w+)/$', 'students.edit_stu'),
    (r'^del_stu/(?P<s_id>\w+)/$', 'students.del_stu'),
    (r'^program_enrolled/(?P<s_id>\w+)/$', 'students.program_enrolled'),
    (r'^program_enrolled/edit/(?P<s_id>\w+)/(?P<pe_id>\w+)/$', 'students.edit_enrolled'),
    (r'^pay_record/(?P<s_id>\w+)/$', 'students.pay_record'),
)

urlpatterns += patterns('crmv2',
    (r'^edit_student/(?P<s_id>\w+)/$', 'students.edit_student'),
    (r'^program_enrolled/(?P<s_id>\w+)/delcourse/(?P<sc_id>\w+)/$', 'students.del_student_enrolled_course'),
    (r'^setdays/$', 'students.setdays'),
)

urlpatterns += patterns('crmv2',
    (r'^course/(?P<pc_id>\w+)/student/$', 'course.student_list'),
    (r'^course/studentlisttest/$', 'course.student_list_test'),
    (r'^classes/$', 'course.classes'),
    (r'^classes/changeclassstatus/$', 'course.changeclassstatus'),
    (r'^classes/setallcompleted/$', 'course.setallclassstatus'),
)